package com.topsun.posclient.system.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 操作员
 * @author Dong
 *
 */
@Entity
@Table(name="pos_operator")
/**
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlRootElement(name="Operator")
@XmlType(name = "Operator", propOrder = {
    "id",
    "name",
    "password",
    "roleId",
    "roleName",
    "orgId",
    "orgName",
    "employeeId",
    "employeeName"
},namespace="http://com.topsun.posclient/Operator")
*/
public class Operator {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "ID",unique=true,nullable = false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
	private long id;
	
	@Column(name = "name", nullable = true, length = 20)
	private String name;
	
	@Column(name = "password", nullable = true, length = 6)
	private String password;
	
	@Column(name = "roleId", nullable = true)
	private long roleId;
	
	@Column(name = "roleName", nullable = true, length = 20)
	private String roleName;
	
	@Column(name = "orgId", nullable = true)
	private long orgId;
	
	@Column(name = "orgName", nullable = true, length = 20)
	private String orgName;
	
	@Column(name = "employeeId", nullable = true)
	private long employeeId;
	
	@Column(name = "employeeName", nullable = true, length = 20)
	private String employeeName;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getRoleId() {
		return roleId;
	}

	public void setRoleId(long roleId) {
		this.roleId = roleId;
	}

	public long getOrgId() {
		return orgId;
	}

	public void setOrgId(long orgId) {
		this.orgId = orgId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public long getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(long employeeId) {
		this.employeeId = employeeId;
	}

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}
}
